package com.examination.system.administrato;

import org.junit.Test;

import java.util.Scanner;

/**
 * @author 寇淇芮
 * @Date 2019/11/11 21:46
 */
public class DYF {
    @Test
    public void dome() {


    }
    @Test
    public void dome2() {
       Scanner scanner =  new Scanner(System.in);
        System.out.println("请输入一个数");
        Integer a = scanner.nextInt();
        //int a=1321;
        long b=0;
        int t = a;
        while (a>0){
            b= b*10+ (a%10);
            a/=10;
        }
        if (b > Integer.MAX_VALUE || b < Integer.MIN_VALUE) {
            System.out.println("越界了");
        }
        if(t == b){
            System.out.println(t+"此数为回文数");
        }else {
            System.out.println(t+"不是回文数");
        }
    }
    @Test
    public void dome3() {



    }

}
